// Vuex module
export default {
	// Vuex 全局状态
	state: {
		guestOrderInfo:{
			"airport": '', //机场
			"viplounge_title": "",//服务标题
			"car_num": '',//车牌号
			"split_type": '',//服务类型 接机
			"flight_type":'', //国内国外航班类型
			"people_num": "1",
			"flight_num": "",
			"flight_time": "",
			"usage_time": "",
			"distance": 0,
			"notes": "",
			"price": "",
			"users": [{
				"sex": 0,
				"user_name": "",
				"user_phone": ""
			}]
		},
		carType:{},
		latAndLon:{}
	},
	mutations: {
		// savaCarInfo(){
		SAVE_GUEST_INFO(state, data){
			console.log('政要通下订单信息',data);
			state.guestOrderInfo = data
		},
		CAR_TYPE(state, data){
			console.log('礼宾车订单车信息',data);
			state.carType = data
		},
		SAVE_LAT_LON(state, data){
			console.log('礼宾车订单车位置经纬度',data);
			state.latAndLon = {
				lat:data.latitude,
				lon:data.longitude,
				info:data
			}
		},
	}
};
